//
//  SWBookIntroduceViewController.swift
//  ChildStory
//  商品介绍页(AD)
//  Created by linhan on 2017/1/10.
//  Copyright © 2017年 Aiya. All rights reserved.
//

import Foundation
import UIKit
class SWBookIntroduceViewController: SWBaseViewController
{
    override func viewDidLoad() {
        super.viewDidLoad()
        setup()
    }
    
    private func setup()
    {
        automaticallyAdjustsScrollViewInsets = false
        
        
        let startBtn:UIButton = UIButton(type: .system)
        startBtn.backgroundColor = UIColor(white: 0.95, alpha: 1)
        startBtn.setTitle("开始", for: .normal)
        startBtn.addTarget(self, action: #selector(startBtnTapped), for: .touchUpInside)
        startBtn.frame = CGRectMake(0, view.height - 50, view.width, 50)
        view.addSubview(startBtn)
    }
    
    @objc private func startBtnTapped()
    {
        navigationController?.pushViewController(SWBasketViewController(), animated: true)
    }
    
    
}
